/*
 *  This file is part of Bracket Properties
 *  Copyright 2011 David R. Smith
 *
 */
package org.dave.bracket.properties.big;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
import java.util.HashMap;

public class PropertiesIndex {
	
	HashMap<Integer,Long> map = new HashMap<Integer,Long>();
	RandomAccessFile propFile;

	public PropertiesIndex() {
		super();
	}
	
	public PropertiesIndex(File propFile) {
		super();
		try {
			this.propFile = new RandomAccessFile(propFile, "r");
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}

	public void addEntry(String key, long index){
		map.put(key.hashCode(), index);
	}
	
}
